<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #id {
        color: red;
      }

      div[lang|="zh"] {
        color: tomato;
      }
    </style>
  </head>
  <body>
    <h1 id="id">kevin</h1>
    <h1 id="id">kevin1</h1>
    <h1 id="id">kevin2</h1>
    <div lang>abc</div>
    <div lang="zh">abc</div>
    <div lang="zh#">abc</div>
    <div lang="zh-2">abc</div>
    <div lang="zh-()">abc</div>
    <script>
      const h1 = document.querySelector("#id");

      console.log(h1, document.getElementById("id")); // kevin 获取第一个
    </script>
  </body>
</html>
